from flask import Flask, jsonify, request
from flask_cors import CORS

app = Flask(__name__)
CORS(app=app)


@app.route("/event/up", methods=["POST"])
def hello_world():
    name = request.form.get("name")
    description = request.form.get("description")
    fileObj = request.files.get("file")
    print(name)
    print(description)
    print(fileObj)
    return "Hello World"


if __name__ == "__main__":
    app.run()